<template>
    <div>
        <button @click="handlecollapse">click</button>
        <el-header>Header</el-header>
    </div>
</template>
<script setup>
import { useStore } from 'vuex';
const store = useStore()
const handlecollapse = () => {
    store.commit('changeisCollapse');
}
</script>